package fhp.hlhj.giantfold.presenter

import com.lzy.okgo.model.HttpParams
import fhp.hlhj.giantfold.interfaces.ICreateOrder
import fhp.hlhj.giantfold.javaBean.BaseBean
import fhp.hlhj.giantfold.module.CreateOrderModule

/**
 * author: FHP
 * data: on 2018\1\23 0023 9:42
 * E-Mail: 103945089@qq.com
 */
class OrderPresenter(private val iCreateOrder: ICreateOrder) : CreateOrderModule.OnOrderCreateListener {
    override fun onCreateListener(baseBean: BaseBean) {
        iCreateOrder.createOrder(baseBean)
    }

    private val module=CreateOrderModule()

    fun createOder(params: HttpParams){
        module.createOrder(params,this)
    }

    fun changeOrder(params: HttpParams){
        module.changeOrder(params,this)
    }
}